import request from '@/utils/request'
import qs from "querystring"
export default{
    //查询全部
    getFindItemList(){
        return request({
            url:"/api-operate/seckill/item/getFindItem",
            method:"get"
        })
    },

    //根据id删除
    getDeleteItemList(id){
        var data=qs.stringify({id})
        return request({
            url:"/api-operate/seckill/item/getDeleteItem",
            method:"delete",
            data
        })
    },

    //根据id修改添加
    getUpdateItemList(dto){
        var data=qs.stringify(dto)
        return request({
            url:"/api-operate/seckill/item/getUpdateItem",
            method:"put",
            data
        })
    },
}